package com.demo.demospringboot.entity;

import java.time.LocalDateTime;

/**
 * 用户实体类
 * 
 * @author <a href="mailto:chenxilzx1@gmail.com">theonefx</a>
 */
public class User {

  private Long id;
  private String username;
  private String password;
  private String email;
  private String name;
  private Integer age;
  private LocalDateTime createTime;
  private LocalDateTime updateTime;

  public User() {
  }

  public User(String username, String password) {
    this.username = username;
    this.password = password;
  }

  public User(String username, String password, String email, String name, Integer age) {
    this.username = username;
    this.password = password;
    this.email = email;
    this.name = name;
    this.age = age;
  }

  // Getter and Setter methods
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public LocalDateTime getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(LocalDateTime updateTime) {
    this.updateTime = updateTime;
  }
}